#!/bin/bash
echo "测试9: 持续时间测试 - 30个并发用户，持续90秒"
start_time=$(date +%s)
ab -c 30 -t 90 -k -e test_results/test9_duration.csv https://localhost:443/ > test_results/test9_duration.txt
end_time=$(date +%s)
duration=$((end_time - start_time))
echo "测试实际持续了 $duration 秒"
